package com.log.blog_backend.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author blog
 * @since 2023-01-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_comments")
public class ArticleComments implements Serializable {
     @TableField(value = "article_id")
    private String articleId;

    @TableId(value = "comment_id", type = IdType.ID_WORKER_STR)
    private String commentId;

    private String commentUserId;

    private String commentContent;

    @TableField(fill = FieldFill.INSERT )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String fallbackId;


}
